package cc.ailley.singleton.lazy;

/**
 * 懒汉式(非线程安全)
 *
 * @author ailley
 */
public class SimpleLazy {

    private SimpleLazy(){}

    private static SimpleLazy instance = null;

    public static SimpleLazy getInstance(){
        if(instance == null){
            instance = new SimpleLazy();
        }
        return instance;
    }
}
